package com.augurit.wf.common.tag.haspriv;

import java.io.Writer;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.struts2.components.Component;

import com.opensymphony.xwork2.util.ValueStack;

import de.odysseus.el.tree.Tree;

public class WfHasPriv extends Component {
	private String hasPiv;

	public WfHasPriv(ValueStack stack){
		super(stack);
	}
	
	@Override
	public boolean start(Writer writer) {
		boolean result = super.start(writer);
		try {
			writer.write(hasPiv);
		} catch (Exception e) {
			Logger.getLogger(Tree.class.getName()).log(Level.WARN, null, e);
		}
		return result;
	}
	
	public String getHasPiv() {
		return hasPiv;
	}

	public void setHasPiv(String hasPiv) {
		this.hasPiv = hasPiv;
	}
	
	
	
}
